{extend name="Index/index" /}

{block name="main"}
<h2 style="margin-bottom:30px;">
    影片管理
    <small>
        <i class="icon-double-angle-right"></i>
        <span style="color: deepskyblue;">影片修改</span>
    </small>
</h2>

    <div class="row">
        <div class="col-md-12">
        
            <form action="{:url('admin/Film/doedit',['id'=>$data['id']])}" method='post' class="form-horizontal" enctype="multipart/form-data">
                <input type="hidden" name="_method" value="PUT">
                <div class="form-group" style="">
                    <label for="" class="col-sm-2 control-label">影片名称：</label>
                    <div class="col-sm-4">
                        <input type="text" name="filmname" class="form-control" placeholder="" value="{$data.filmname}">
                    </div>
                </div>
                <div class="form-group">
                    <label for="" class="col-sm-2 control-label">影片介绍：</label>
                    <div class="col-sm-4">
                        <textarea  type="text" name="info" class="form-control" placeholder="">{$data.info}</textarea>
                    </div>
                </div>
                <div class="form-group">
                    <label for="" class="col-sm-2 control-label">影片时长：</label>
                    <div class="col-sm-4">
                        <input  type="text" name="time" class="form-control" placeholder="分钟" value="{$data.time}">
                    </div>
                </div>
                <div class="form-group">
                    <label for="" class="col-sm-2 control-label">导演/演员：</label>
                    <div class="col-sm-4">
                        <textarea  type="text" name="person" class="form-control" placeholder="">{$data.person}</textarea>
                    </div>
                </div>
                <div class="form-group">
                    <label for="" class="col-sm-2 control-label">类型：</label>
                    <div class="col-sm-4">
                        <input  type="text" name="type" class="form-control" placeholder="" value="{$data.type}">
                    </div>
                </div>
                <div class="form-group">
                <label class="col-sm-2 control-label" for="" style="">影片上映时间</label>
                <div class="col-sm-4">
                        <input  type="text" name="type" class="form-control" placeholder="" value="{$data.year}">
                    </div>
              </div>
                <div class="form-group">
                     <label for="" class="col-sm-2 control-label">国家：</label>
                    <div class="col-sm-3 col-sm-offset-1  two">
                        <input type="radio" name="state" value="0" {if condition="$data.state eq 0"}checked{/if}>中国
                        <input type="radio" name="state" value="1" {if condition="$data.state eq 1"}checked{/if}>英国
                        <input type="radio" name="state" value="2" {if condition="$data.state eq 2"}checked{/if}>日本
                        <input type="radio" name="state" value="3" {if condition="$data.state eq 3"}checked{/if}>韩国
                        <input type="radio" name="state" value="4" {if condition="$data.state eq 4"}checked{/if}>印度
                    </div>
                </div>
                <div class="form-group">
                     <label for="" class="col-sm-2 control-label">语言：</label>
                    <div class="col-sm-3 col-sm-offset-1 one">
                        <input type="checkbox" name="tongue" value="0"{if condition="$data.tongue eq 0"}checked{/if}>中文
                        <input type="checkbox" name="tongue" value="1" {if condition="$data.tongue eq 1"}checked{/if}>英语
                        <input type="checkbox" name="tongue" value="2" {if condition="$data.tongue eq 2"}checked{/if}>日语
                        <input type="checkbox" name="tongue" value="3" {if condition="$data.tongue eq 3"}checked{/if}>韩语
             
                    </div>
                </div>
                <div class="form-group">
                <label for="exampleInputFile" class="col-sm-2 control-label" style="" >上传封面</label>
                <div class="col-sm-4">
                <input type="file" name="filmimg" id="exampleInputFile" >
                </div>
                
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-4">
                        <button type="submit" class="btn btn-default" style="background-color: yellow;">保存</button>
                    </div>
                </div>
         
            </form>
        
        </div>
    </div>



{/block}